package com.xnyzc.lhy.common.penum.order;


/**
 * @Author: huxuekuo
 * @Date: 2019-08-07 15:11
 * @Description:
 */
public enum EDOrderQuery {
    waitApproval("zero", "待审核"),
    ordering("first", "进行中"),
    finish("second", "已完结"),
    cancel("third", "已取消"),
    driverQuery("four", "司机端");

    private String type;
    private String value;

    EDOrderQuery(String type, String value) {
        this.type = type;
        this.value = value;
    }

    public static EDOrderQuery findById(String type) {
        EDOrderQuery[] values = EDOrderQuery.values();
        for (EDOrderQuery value : values) {
            if (value.type.equals(type)) {
                return value;
            }
        }
        return null;
    }

    public String getType() {
        return type;
    }

    public String getValue() {
        return value;
    }
}
